﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace WJP.Queue.NameServer
{
    /// <summary>
    /// 名称服务设置
    /// </summary>
    public class NameServerSetting
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 服务端口号，默认为9493
        /// </summary>
        public IPEndPoint BindingAddress { get; set; }

        /// <summary>
        /// Broker不活跃最大允许时间，如果一个Broker超过此时间未发送心跳，则认为此Broker挂掉了；默认超时时间为30s;
        /// </summary>
        public int BrokerInactiveMaxMilliseconds { get; set; }
    }
}
